package com.woniu.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.common.dto.MySkuOrderDto;
import com.woniu.common.dto.SkuDto;
import com.woniu.product.pojo.TOrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author zyq
* @description 针对表【t_order_detail(订单详细)】的数据库操作Mapper
* @createDate 2024-05-21 20:19:38
* @Entity com.woniu.product.pojo.TOrderDetail
*/
public interface TOrderDetailMapper extends BaseMapper<TOrderDetail> {
    List<MySkuOrderDto> queryDetailByPhone(String phone);
    IPage<MySkuOrderDto> queryOrders(Page<MySkuOrderDto> page, @Param("phone") String phone);

    IPage<MySkuOrderDto> queryOrdersOk(Page<MySkuOrderDto> page, @Param("phone") String phone);

    List<MySkuOrderDto> queryhostSks();

    MySkuOrderDto queryTeseSku(String phone);

    List<SkuDto> queryTeseBySkuId(Long skuId);
}




